console.log(1000);
for (let i = 0; i < 1000; i++) {
    let a = Math.floor(Math.random() * 9) + 1;
    let b = Math.floor(Math.random() * 9) + 1;
    let c = Math.floor(Math.random() * 9) + 1;
    let d = Math.floor(Math.random() * 9) + 1;
    let l1 = Math.floor(Math.random() * 9) + 1;
    let l2 = Math.floor(Math.random() * 9) + 1;
    console.log(`${a} ${b} ${c} ${d} ${Math.min(l1, l2)} ${Math.max(l1, l2)}`);
}
